added a usefull helper method