implememted a couple of methods