more development, error code added