removed test added 2 functions for state manipulation