modified constants;
implemented frame independence;