bug returning data