apend function implemented
apend implemented