changes for refined version