added scaling and some debug lines