code refact for use stric