moved getSize to functions pool