not needed for rails 4