plot preventing if not main