added prepend and nth function