Added static statemen and fix variable name