added size as a parameter