fix variable declarationg