fixed minor profile bug, minor cleanup.