updating main methods