finally fixed the size check... #syntaxproblems