basic ruby functions, more info :blog.inadram.com