all tests passed
cleaned code for online testing