main functionality got completed