works as it should