added function which 1 guy asked in irc ;d