first version with scaling (fixed factor)