concatanating duplicate function