changes to cash register function