i attempted to develope this function in starting days