fixes in private methods in controllers