fixed missing return