adding accept method