wrote test and fixed bug