removed print statements
updated to use calcsize instead of hard-coding