works better this way