this is where the previous code was not working as expected