added prepend function