fix variable intialization