turning the crwal as an automatic function