removed frames and size variable