added hug functionality