updated method a bit