this should work but doesnt