remove unused size variable