checking the functionality twice