before method and conditional no script