changed limit size to a variable initiated in controller