added size detection