fixed not compiling issue by removing "public"