adding checks for arguments