first version of check