made append and prepend global