but now i keep getting Error compiling.
Specifically, what error(s)?
Why can't you be bothered to use code tags?