added recipt functionality