made readfile method static