now works as expected