method secutiry check added