just use anony function to log first