removing unnecessary metclass if