added checker for auto payment