security check added in different part.