implememted the checkand charge interface