working logic established