some minor coding while gaming :(