remove prototype layouts; fix bug in reverse