basic function over with bugs