added validation to efficiency