was not working as expected