Can you make sure keep is a number throw an exception otherwise