forgot var dec for g